<?php
require 'QueueStruct.php';

$queue = new QueueStruct();
$queue->enqueue("rr");
$queue->enqueue("tt");
$queue->enqueue("yy");
$queue->enqueue("uu");
$queue->enqueue("ii");
$queue->enqueue("oo");

echo $queue->toString(); //打印 [0 => 'rr',1 => 'tt',2 => 'yy',3 => 'uu',4 => 'ii',5 => 'oo']
echo "<br>";
echo $queue->dequeue();  //出栈 打印  rr
echo "<br>";
echo $queue->dequeue();  //出栈 打印  tt
echo "<br>";